﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Structure.Objects;

namespace Structure.Interfaces
{
    public interface iStorage
    {
        DataTable ProjectList();
        void DeleteProject(string id_project);
        void AddProject(Project p);
        void UpdateProject(string id_project,Project p);
        DataTable SelectProject(int id_project);
        Project GetProject(string id_project);

        void AddUserInProject(string id_user, string id_project);
        void DeleteUserFromProject(string id_user, string id_project);
        DataTable GetAllUsersInProjects(string id_project);
       
        
        DataTable TaskList();
        void DeleteTask(string id_task);
        void AddTask(Task t);
        void UpdateTask(string id_task, Task p);
        DataTable SelectTask(int id_task);
        Task GetTask(string id_task);
      
        DataTable UserList();
        void DeleteUser(string index);
        void AddUser(User u);

        string Login(string pLogin, string pPass, ref string pFio);
    }
}
